package cn.b.sky.form.model;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

/**
 * 
 * <strong>Title : BusinessDataTypeDef.java<br></strong>
 * <strong>Package : cn.b.sky.flowable.model<br></strong>
 * <strong>Description : </strong>业务数据类型定义<br> 
 * <strong>Create on : 2016年9月30日 下午1:27:19<br></strong>
 * <p>
 * @author JunLin.Yang<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人|修改日期|修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
public class BusinessDataTypeDef  implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 数据类型
   */
  private String dataType;

  /**
   * 描述
   */
  private String text;

  /**
   * java类型
   */
  private String javaType;

  /**
   * oracle类型
   */
  private String oracleType;

  /**
   * mysql类型
   */
  private String mysqlType;
  
  /**
   * 输入框的属性，类型限制，整型or浮点型
   */
  private String inputType;
  
  /**
   * 最大长度
   */
  private Integer maxLength;
  /**
   * 对应字段类型
   */
  private List<BusinessFieldTypeDef> fileTypeList = null;

  public String getDataType() {
    return dataType;
  }

  public void setDataType(String dataType) {
    this.dataType = dataType;
  }

  public String getText() {
    return text;
  }

  public void setText(String text) {
    this.text = text;
  }

  public String getJavaType() {
    return javaType;
  }

  public void setJavaType(String javaType) {
    this.javaType = javaType;
  }

  public String getOracleType() {
    return oracleType;
  }

  public void setOracleType(String oracleType) {
    this.oracleType = oracleType;
  }

  public String getMysqlType() {
    return mysqlType;
  }

  public void setMysqlType(String mysqlType) {
    this.mysqlType = mysqlType;
  }

  public String getInputType() {
    return inputType;
  }

  public void setInputType(String inputType) {
    this.inputType = inputType;
  }

  public Integer getMaxLength() {
    return maxLength;
  }

  public void setMaxLength(Integer maxLength) {
    this.maxLength = maxLength;
  }

  public List<BusinessFieldTypeDef> getFileTypeList() {
    return fileTypeList;
  }

  public void setFileTypeList(List<BusinessFieldTypeDef> fileTypeList) {
    this.fileTypeList = fileTypeList;
  }
  
  public void addFieldTypeRelation(BusinessFieldTypeDef e){
    if(null == this.fileTypeList){
      this.fileTypeList = new LinkedList<BusinessFieldTypeDef>();
    }
    
    this.fileTypeList.add(e);
  }
}
